home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
ply15dat.zip
/
BEZIER0.PI
< prev
next >
Wrap
Text File
|
1992-09-19
|
1KB
|
48 lines
// Bezier patch
viewpoint {
from <0,0,-15>
at <0,0,0>
up <0,1,0>
angle 45
resolution 160, 160
}
background <0, 0, 0>
light <-10,10, -5>
define shiny_red
texture {
surface {
ambient red, 0.2
diffuse red, 0.8
specular white, 0.7
microfacet Reitz radians(10)
}
}
define dented_red
texture {
noise surface {
color <1, 0.2, 0.2>
normal 1
frequency 2
bump_scale 3
ambient 0.6
diffuse 0.5
specular 0.6
microfacet Reitz 10
}
}
object {
bezier 2, 0.05, 5, 5,
< 0.0, 0.0, 2.0>, < 1.0, 0.0, 0.0>, < 2.0, 0.0, 0.0>, < 3.0, 0.0,-2.0>,
< 0.0, 1.0, 0.0>, < 1.0, 1.0, 0.0>, < 2.0, 1.0, 0.0>, < 3.0, 1.0, 0.0>,
< 0.0, 2.0, 0.0>, < 1.0, 2.0, 0.0>, < 2.0, 2.0, 0.0>, < 3.0, 2.0, 0.0>,
< 0.0, 3.0, 2.0>, < 1.0, 3.0, 0.0>, < 2.0, 3.0, 0.0>, < 3.0, 3.0,-2.0>
translate <-1.5, -1.5, 0>
scale <2, 2, 2>
rotate <30, -70, 0>
dented_red
}